package jsyf.oa.entity.system;

import com.alibaba.fastjson.JSONObject;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import jsyf.oa.ientity.BaseEntity;

@Entity
@Table(name = "t_sys_role_right_config_log", schema = "oa", catalog = "")
public class RoleRightConfigLogEntity extends BaseEntity {

    private String createUserId;
    private Date createTime;
    private String roleNameId;
    private String changeBeforeIds;
    private String changeAfterIds;
    private String changeBeforeNames;
    private String changeAfterNames;
    private String changeType;
    private String remark;


    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CREATE_USER_ID", getCreateUserId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("ROLE_NAME_ID", getRoleNameId());
        obj.put("CHANGE_BEFORE_IDS", getChangeBeforeIds());
        obj.put("CHANGE_AFTER_IDS", getChangeAfterIds());
        obj.put("CHANGE_BEFORE_NAMES", getChangeBeforeNames());
        obj.put("CHANGE_AFTER_NAMES", getChangeAfterNames());
        obj.put("CHANGE_TYPE", getChangeType());
        obj.put("REMARK", getRemark());
        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_role_right_config_log";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("CREATE_TIME", "createTime");
        obj.put("ROLE_NAME_ID","roleNameId");
        obj.put("CHANGE_BEFORE_IDS", "changeBeforeIds");
        obj.put("CHANGE_AFTER_IDS", "changeAfterIds");
        obj.put("CHANGE_BEFORE_NAMES", "changeBeforeNames");
        obj.put("CHANGE_AFTER_NAMES", "changeAfterNames");
        obj.put("CHANGE_TYPE", "changeType");
        obj.put("REMARK","remark");
        return obj;
    }



    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRoleNameId() {
        return roleNameId;
    }

    public void setRoleNameId(String roleNameId) {
        this.roleNameId = roleNameId;
    }

    public String getChangeBeforeIds() {
        return changeBeforeIds;
    }

    public void setChangeBeforeIds(String changeBeforeIds) {
        this.changeBeforeIds = changeBeforeIds;
    }

    public String getChangeAfterIds() {
        return changeAfterIds;
    }

    public void setChangeAfterIds(String changeAfterIds) {
        this.changeAfterIds = changeAfterIds;
    }

    public String getChangeBeforeNames() {
        return changeBeforeNames;
    }

    public void setChangeBeforeNames(String changeBeforeNames) {
        this.changeBeforeNames = changeBeforeNames;
    }

    public String getChangeAfterNames() {
        return changeAfterNames;
    }

    public void setChangeAfterNames(String changeAfterNames) {
        this.changeAfterNames = changeAfterNames;
    }

    public String getChangeType() {
        return changeType;
    }

    public void setChangeType(String changeType) {
        this.changeType = changeType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}
